package com.itheima.homework1.demo1;

public class Test {
    public static void main(String[] args) {

        Card card1 = new GoldCard("1234",50000);
        card1.pay(card1,500);//card1表示金卡
        Card card2 = new SilverCard("1234",50000);
        card2.pay(card2,500);//card2表示银卡
    }
}
